<template>
  <div class="index-wrap">
    <div class="header-wrap">
      <span>扬州市邗江区博物馆</span>
    </div>
    <div class="menu">
      <div class="left">
        <Navgation></Navgation>
      </div>
      <div class="right">
        <router-view />
      </div>
    </div>
  </div>
</template>

<script>
import Navgation from '@/components/Navgation'
export default {
  name: "Index",
  components:{
    Navgation
  },
  data() {
    return {
      dataTest: [1, 2, 3, 1, 1, 1]
    };
  },
  methods: {
    goto(path) {
      this.$router.push(path);
    }
  }
};
</script>

<style lang="scss" scoped>
  @import "../../static/styles/mixin.scss";
.index-wrap {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  background: url(image/bg.png) no-repeat;
  background-position: center 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  -webkit-background-size: cover;
  /* 兼容Webkit内核浏览器如Chrome和Safari */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  zoom: 1;
  .header-wrap {
    background: #666;
    height: 0.7rem;
    opacity: 0.5;
    text-align: center;
    color: #fefefe;
    font-size: 0.3rem;
    line-height: 0.7rem;
    margin-bottom: 2%;
    width: 100%;
  }
  .menu {
    width: 67%;
    background: rgba(236, 243, 255, 1);
    border-radius: 0.05rem;
    margin: 0 auto;
    opacity: 0.7;
    display: flex;
    .left {
      width: 17%;
    }
    .right {
      width: 83%;
      height: 6.9rem;
    }
  }
}
</style>
